﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Homework
{
    class Tom:Cat,IPerform1
    {
        public override void Eat()
        {
            Console.WriteLine("我汤姆猫喜欢吃西餐");
        }

        public void Perform()
        {
            Console.WriteLine("隐式实现汤姆猫会演奏各种乐器");
        }

        void IPerform1.Perform()
        {
            Console.WriteLine("显式实现汤姆猫会演奏各种乐器");
        }
    }
}
